import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;


public class SocketController implements ISocketController {
	
	private String host;
	private int port;
	
	public SocketController(String host, int port) {
		super();
		this.host = host;
		this.port = port;
	}
	
	public void send(String s) throws IOException {
		Socket socket = new Socket(host, port);
		DataOutputStream out = new DataOutputStream(socket.getOutputStream());
		out.writeBytes(s);
		out.close();
		socket.close();
	}

	public String receive() {
		
		return null;
	}
}
